package com.terren.spider.db.service;

import java.util.List;

import com.terren.spider.db.basic.IBasicServiceSupport;
import com.terren.spider.entity.biz.TiebaUser;

public interface TiebaUserService extends IBasicServiceSupport{
	/**
	 * 
	 * @param items
	 * @throws Exception
	 */
	public void save(List<TiebaUser> items) throws Exception;
	/**
	 * 
	 * @param items
	 * @throws Exception
	 */
	public void saveDetail(List<TiebaUser> items) throws Exception;
	/**
	 * 
	 * @return
	 * @throws Exception
	 */
	public List<TiebaUser> getTiebaUserDetailList() throws Exception;
	/**
	 * 抓取进行状态
	 * 状态：0-未抓取,1-抓取完成，9-正在抓取
	 * @param spiderTask
	 * @throws Exception
	 */
	public void updateProgressStatus(List<TiebaUser> users) throws Exception;
	/**
	 * 抓取完成
	 * 状态：0-未抓取,1-抓取完成，9-正在抓取
	 * @param spiderTask
	 * @throws Exception
	 */
	public void updateDoneStatus(List<TiebaUser> users) throws Exception;
	/**
	 * 更新抓取次数 +1
	 * @param users
	 * @throws Exception
	 */
	public void updateFetchtimes(List<TiebaUser> users) throws Exception;
	
}
